<div id="header">
<h1>
	<a href="/"><span class="logo_Nibiru">Nibiru</span><span class="logo_Era">Era</span></a>
	<span class="logo_desc">MY LIFE, MY BELIEF, MY ABSOLUTE SELF.</span>
	<span class="logo_btn">
		{% if username %}
			hi, <span class="user_name">{{username}}</span> <span style="margin-left: 10px;">[ <a href="/manage/logout/">Logout</a> ]</span>
		{% else %}
			[ <a href="/manage/login/">Login</a> ]
		{% endif %}
		[ <a href="/manage/center/">Manage</a> ]
	</span>
</h1>
 <div id="menu">
  <ul id="nav">
  	{% for category in categories %}
	  	{% ifequal currcategory category.name %}
	  		<li class='category_now'><span>{{category.title}}</span></li>
	  	{% else %}
	  		{% ifequal category.name 'home' %}
	  			{% if not currcategory %}
	  				<li class='category_now'><span>{{category.title}}</span></li>
	  			{% else %}
	  				<li><a href='/'>{{category.title}}</a></li>
	  			{% endif %}
	  		{% else %}
	  			<li><a href='/{{category.name}}/'>{{category.title}}</a></li>
	  		{% endifequal %}
  		{% endifequal %}
  	{% endfor %}
  </ul>
 </div>
</div>